package com.dingdang.mapper;

import com.dingdang.model.Admin;
import org.apache.ibatis.annotations.Select;

public interface AdminMapper {

//  编写映射器类
// 针对此类，一般有两种实现方式来操作数据库
//1）注解：@Insert、@Select、@Update、@Delete
//2）xml文件配置

    @Select("select count(id) from app_admin where login_name=#{login_name} and password=#{password} ")
    int getAdminByUserNameAndPassWord(Admin admin);
}